﻿<div [@routerTransition]>
    <hr class="border-green" />
    <div class="form-actions">
        <div class="form-group row">
            <label class="col-sm-4 control-label">{{l("Item")}}</label>
            <div class="col-sm-8 text-right">
                <p class="form-control-static text-bold">
                    {{description}}
                </p>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-4 control-label">{{l("Price")}}</label>
            <div class="col-sm-8 text-right">
                <p class="form-control-static text-bold" id="totalPrice">
                    {{appSession.application.currencySign}}{{totalAmount | number : '1.2-2'}}
                </p>
            </div>
        </div>
    </div>

    <div *ngIf="config && config.demoUsername && config.demoPassword" class="m-alert m-alert--icon m-alert--icon-solid m-alert--outline alert alert-brand alert-dismissible fade show" role="alert">
        <div class="m-alert__icon">
            <i class="flaticon-exclamation"></i>
            <span></span>
        </div>
        <div class="m-alert__text">
            <h4>
                {{l("DemoPayPalAccount")}}
            </h4>
            <p>
                <span>{{l("UserName")}}: <strong>{{config.demoUsername}}</strong></span><br />
                <span>{{l("Password")}}: <strong>{{config.demoPassword}}</strong></span>
            </p>
        </div>
    </div>

    <div id="paypal-button"></div>
    <div [busyIf]="paypalIsLoading" *ngIf="paypalIsLoading"></div>
</div>
